
class Borg:
    __shared_state = {}
    def __init__(self):
        self.__dict__ = self.__shared_state

    def setMyValue(self, value):
        self.value = value

    def getMyValue(self):
        return self.value


b1 = Borg()
b1.setMyValue(11)
print b1.getMyValue()
b2 = Borg()
print b2.getMyValue()

print Borg.__dict__

